package cn.zjweu.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.sql.Date;
import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface BorrowBookMapper {

    int borrowBook(@Param("userId") int userId, @Param("bookId") int bookId, @Param("date") Date date);

    List<Map<String, Object>> getAllBorrowList();

    List<Map<String, Object>> getAllBorrowListById(@Param("id") int id);

    int deleteById(@Param("id") int id);
}
